package com.power.using.askapp.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 聪明一只哈 on 2019/2/22.
 * Time: 2019/2/22  9:02
 */
public class HomeBean implements Serializable{


    /**
     * code : 200
     * msg : 请求成功
     * result : [{"p_catalog_id":"69","parent_id":"0","name":"配件","pic":"","is_deleted":"0","child":[{"p_catalog_id":"70","parent_id":"69","name":"帽子","pic":"/product_catalog/1446017867549.jpg","is_deleted":"0"},{"p_catalog_id":"105","parent_id":"69","name":"围巾","pic":"/product_catalog/1461642090192.jpg","is_deleted":"0"},{"p_catalog_id":"71","parent_id":"69","name":"配饰","pic":"/product_catalog/1446017886090.jpg","is_deleted":"0"},{"p_catalog_id":"72","parent_id":"69","name":"手表","pic":"/product_catalog/1446017897843.jpg","is_deleted":"0"},{"p_catalog_id":"73","parent_id":"69","name":"首饰","pic":"/product_catalog/1446017920333.jpg","is_deleted":"0"},{"p_catalog_id":"74","parent_id":"69","name":"鞋子","pic":"/product_catalog/1446017931323.jpg","is_deleted":"0"},{"p_catalog_id":"84","parent_id":"69","name":"袜子","pic":"/product_catalog/1446017947046.jpg","is_deleted":"0"}]}]
     */

    private int code;
    private String msg;
    private List<ResultBean> result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * p_catalog_id : 69
         * parent_id : 0
         * name : 配件
         * pic :
         * is_deleted : 0
         * child : [{"p_catalog_id":"70","parent_id":"69","name":"帽子","pic":"/product_catalog/1446017867549.jpg","is_deleted":"0"},{"p_catalog_id":"105","parent_id":"69","name":"围巾","pic":"/product_catalog/1461642090192.jpg","is_deleted":"0"},{"p_catalog_id":"71","parent_id":"69","name":"配饰","pic":"/product_catalog/1446017886090.jpg","is_deleted":"0"},{"p_catalog_id":"72","parent_id":"69","name":"手表","pic":"/product_catalog/1446017897843.jpg","is_deleted":"0"},{"p_catalog_id":"73","parent_id":"69","name":"首饰","pic":"/product_catalog/1446017920333.jpg","is_deleted":"0"},{"p_catalog_id":"74","parent_id":"69","name":"鞋子","pic":"/product_catalog/1446017931323.jpg","is_deleted":"0"},{"p_catalog_id":"84","parent_id":"69","name":"袜子","pic":"/product_catalog/1446017947046.jpg","is_deleted":"0"}]
         */

        private String p_catalog_id;
        private String parent_id;
        private String name;
        private String pic;
        private String is_deleted;
        private List<ChildBean> child;

        public String getP_catalog_id() {
            return p_catalog_id;
        }

        public void setP_catalog_id(String p_catalog_id) {
            this.p_catalog_id = p_catalog_id;
        }

        public String getParent_id() {
            return parent_id;
        }

        public void setParent_id(String parent_id) {
            this.parent_id = parent_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getIs_deleted() {
            return is_deleted;
        }

        public void setIs_deleted(String is_deleted) {
            this.is_deleted = is_deleted;
        }

        public List<ChildBean> getChild() {
            return child;
        }

        public void setChild(List<ChildBean> child) {
            this.child = child;
        }

        public static class ChildBean {
            /**
             * p_catalog_id : 70
             * parent_id : 69
             * name : 帽子
             * pic : /product_catalog/1446017867549.jpg
             * is_deleted : 0
             */

            private String p_catalog_id;
            private String parent_id;
            private String name;
            private String pic;
            private String is_deleted;

            public String getP_catalog_id() {
                return p_catalog_id;
            }

            public void setP_catalog_id(String p_catalog_id) {
                this.p_catalog_id = p_catalog_id;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getIs_deleted() {
                return is_deleted;
            }

            public void setIs_deleted(String is_deleted) {
                this.is_deleted = is_deleted;
            }
        }
    }
}
